package com.chart.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 微信支付配置项
 *
 * @author wxPay
 */
@Component
//@ConfigurationProperties(prefix = "wxpay")
public class WxPayConfig
{
    /** 微信公众号APPID */
    @Value("${wxpay.appid}")
    private String appid;

    /** 微信公众号的商户号 */
    @Value("${wxpay.wxpaymentaccount}")
    private String wxpaymentaccount;

    /** 微信公众号的商户支付密钥 */
    @Value("${wxpay.apikey}")
    private String apikey;

    /** 下单接口 */
    @Value("${wxpay.basePath}")
    private String basePath;

    /** 回调接口 */
    @Value("${wxpay.notifyUrl}")
    private String notifyUrl;


    public String getAppid()
    {
        return appid;
    }

    public void setAppid(String appid)
    {
        this.appid = appid;
    }

    public String getWxpaymentaccount()
    {
        return wxpaymentaccount;
    }

    public void setWxpaymentaccount(String wxpaymentaccount)
    {
        this.wxpaymentaccount = wxpaymentaccount;
    }

    public String getApikey()
    {
        return apikey;
    }

    public void setApikey(String apikey)
    {
        this.apikey = apikey;
    }

    public String getBasePath()
    {
        return basePath;
    }

    public void setBasePath(String basePath)
    {
        this.basePath = basePath;
    }

    public String getNotifyUrl()
    {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl)
    {
        this.notifyUrl = notifyUrl;
    }
}
